package com.pucong.gitee.database.backup.common.selfenum;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;


/**
 * @author pucong
 */
@ApiModel("附件状态枚举类")
public enum FileStatusEnum implements CommonEnum<Integer> {

    临时文件(0, "临时文件"),
    正式文件(1, "正式文件");

    @ApiModelProperty(value = "key",example = "0")
    private Integer key;

    @ApiModelProperty("描述")
    private String desc;

    FileStatusEnum(Integer key, String desc) {
        this.key = key;
        this.desc = desc;
    }

    /**
     * 字典code
     * @return
     */
    @Override
    public Integer getValue() {
        return this.key;
    }

    /**
     * 字典名称
     * @return
     */
    @Override
    public String getName() {
        return this.name();
    }
}
